/* 引入订单头部 */
@import url('/order/components/main.css');


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 主体内容样式 */
.main-content {
    flex: 1;
    padding: 24px;
    background-color: #f0f2f5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.content-header {
    background: #fff;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input {
    width: 150px;
    padding: 6px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-success {
    background-color: #52c41a;
    color: white;
}

/* 表格容器样式 */
.table-container {
    flex: 1;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 添加内部滚动容器 */
.table-scroll {
    overflow: auto;
    flex: 1;
}

/* 修改表格样式 */
.table {
    width: 100%;
    min-width: 2400px;
    border-collapse: collapse;
}

/* 修改表格单元格样式 */
.table th, .table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* 最后一列不需要右边框 */
.table th:last-child,
.table td:last-child {
    border-right: none;
}

/* 列宽度类 */
.w-50 { width: 50px; min-width: 50px; }
.w-80 { width: 80px; min-width: 80px; }
.w-100 { width: 100px; min-width: 100px; }
.w-120 { width: 120px; min-width: 120px; }
.w-150 { width: 150px; min-width: 150px; }

/* tooltip样式 */
.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: normal;
    max-width: 300px;
    min-width: 100px;
    z-index: 1000;
}

/* 固定表头 */
.table th {
    background-color: #fafafa;
    position: sticky;
    top: 0;
    z-index: 1;
    border-top: none !important;
    box-shadow: 0 1px 0 #f0f0f0;
}

/* 分页容器样式 */
#paginationContainer {
    padding: 16px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    margin-top: 16px;
    border-radius: 4px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
}

.mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.column-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

.column-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* 加载遮罩层 */
.loading-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
}

.loading-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 4px;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
}